.class Lcn/domob/android/ads/v;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcn/domob/android/ads/v$d;,
        Lcn/domob/android/ads/v$a;,
        Lcn/domob/android/ads/v$b;,
        Lcn/domob/android/ads/v$c;
    }
.end annotation


# static fields
.field private static a:Lcn/domob/android/ads/H; = null

.field private static final d:Ljava/lang/String; = "domob_close.png"

.field private static final e:I = 0x28

.field private static final f:I = 0x28


# instance fields
.field private b:Landroid/os/Handler;

.field private c:Landroid/app/Dialog;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Lcn/domob/android/ads/H;

    const-class v1, Lcn/domob/android/ads/v;

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcn/domob/android/ads/H;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcn/domob/android/ads/v;->a:Lcn/domob/android/ads/H;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcn/domob/android/ads/v;->b:Landroid/os/Handler;

    return-void
.end method

.method synthetic constructor <init>(Landroid/content/Context;Lcn/domob/android/ads/v$1;)V
    .locals 0

    invoke-direct {p0, p1}, Lcn/domob/android/ads/v;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcn/domob/android/ads/v;)Landroid/app/Dialog;
    .locals 1

    iget-object v0, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    return-object v0
.end method

.method private a(Landroid/view/View;Lcn/domob/android/ads/v$d;)V
    .locals 11

    const/16 v10, 0xd

    const/16 v9, 0xb

    const/4 v5, -0x1

    const/high16 v7, 0x4220

    const/4 v8, 0x0

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_2

    :cond_0
    sget-object v0, Lcn/domob/android/ads/v;->a:Lcn/domob/android/ads/H;

    const-string v1, "\u9700\u8981\u5f39\u51fa\u663e\u793a\u7684View\u5df2\u7ecf\u88ab\u52a0\u8f7d\u5176\u4ed6ViewGroup\u4e2d\uff0c\u9700\u8981remove\u4e4b\u540e\u663e\u793a\u3002"

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->e(Ljava/lang/String;)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    invoke-static {p2}, Lcn/domob/android/ads/v$d;->a(Lcn/domob/android/ads/v$d;)Landroid/content/Context;

    move-result-object v0

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->b(Lcn/domob/android/ads/v$d;)I

    move-result v1

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->c(Lcn/domob/android/ads/v$d;)I

    move-result v2

    new-instance v3, Landroid/app/Dialog;

    const v4, 0x1030010

    invoke-direct {v3, v0, v4}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    iput-object v3, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    iget-object v3, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    new-instance v4, Lcn/domob/android/ads/v$1;

    invoke-direct {v4, p0, p1, p2}, Lcn/domob/android/ads/v$1;-><init>(Lcn/domob/android/ads/v;Landroid/view/View;Lcn/domob/android/ads/v$d;)V

    invoke-virtual {v3, v4}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    new-instance v3, Landroid/widget/RelativeLayout;

    invoke-direct {v3, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->f(Lcn/domob/android/ads/v$d;)Z

    move-result v4

    if-eqz v4, :cond_3

    const/16 v4, 0x96

    invoke-static {v4, v8, v8, v8}, Landroid/graphics/Color;->argb(IIII)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    :cond_3
    new-instance v4, Landroid/widget/RelativeLayout;

    invoke-direct {v4, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v5, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->g(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-nez v6, :cond_4

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->h(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-nez v6, :cond_4

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->i(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-nez v6, :cond_4

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->j(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-nez v6, :cond_4

    invoke-virtual {v5, v10}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :cond_4
    invoke-static {p2}, Lcn/domob/android/ads/v$d;->g(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-eqz v6, :cond_5

    const/16 v6, 0x9

    invoke-virtual {v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :cond_5
    invoke-static {p2}, Lcn/domob/android/ads/v$d;->i(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-eqz v6, :cond_6

    invoke-virtual {v5, v9}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :cond_6
    invoke-static {p2}, Lcn/domob/android/ads/v$d;->h(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-eqz v6, :cond_7

    const/16 v6, 0xa

    invoke-virtual {v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :cond_7
    invoke-static {p2}, Lcn/domob/android/ads/v$d;->j(Lcn/domob/android/ads/v$d;)Z

    move-result v6

    if-eqz v6, :cond_8

    const/16 v6, 0xc

    invoke-virtual {v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :cond_8
    new-instance v6, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v6, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v6, v10}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v4, p1, v6}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->k(Lcn/domob/android/ads/v$d;)Z

    move-result v1

    if-eqz v1, :cond_9

    invoke-static {v0}, Lcn/domob/android/ads/n;->u(Landroid/content/Context;)F

    move-result v1

    mul-float/2addr v1, v7

    float-to-int v1, v1

    invoke-static {v0}, Lcn/domob/android/ads/n;->u(Landroid/content/Context;)F

    move-result v2

    mul-float/2addr v2, v7

    float-to-int v2, v2

    new-instance v6, Landroid/widget/ImageButton;

    invoke-direct {v6, v0}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    const/16 v7, 0x8

    invoke-virtual {v6, v7}, Landroid/widget/ImageButton;->setVisibility(I)V

    const-string v7, "domob_close.png"

    invoke-static {v0, v7}, Lcn/domob/android/ads/A;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v6, v0}, Landroid/widget/ImageButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v9}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v4, v6, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Lcn/domob/android/ads/v$2;

    invoke-direct {v0, p0}, Lcn/domob/android/ads/v$2;-><init>(Lcn/domob/android/ads/v;)V

    invoke-virtual {v6, v0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcn/domob/android/ads/v;->b:Landroid/os/Handler;

    new-instance v1, Lcn/domob/android/ads/v$3;

    invoke-direct {v1, p0, v6}, Lcn/domob/android/ads/v$3;-><init>(Lcn/domob/android/ads/v;Landroid/widget/ImageButton;)V

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->l(Lcn/domob/android/ads/v$d;)I

    move-result v2

    int-to-long v6, v2

    invoke-virtual {v0, v1, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_9
    invoke-static {p2}, Lcn/domob/android/ads/v$d;->m(Lcn/domob/android/ads/v$d;)Z

    move-result v0

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    invoke-virtual {v0, v8}, Landroid/app/Dialog;->setCancelable(Z)V

    iget-object v0, p0, Lcn/domob/android/ads/v;->b:Landroid/os/Handler;

    new-instance v1, Lcn/domob/android/ads/v$4;

    invoke-direct {v1, p0, p2}, Lcn/domob/android/ads/v$4;-><init>(Lcn/domob/android/ads/v;Lcn/domob/android/ads/v$d;)V

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->l(Lcn/domob/android/ads/v$d;)I

    move-result v2

    int-to-long v6, v2

    invoke-virtual {v0, v1, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_a
    invoke-static {p2}, Lcn/domob/android/ads/v$d;->n(Lcn/domob/android/ads/v$d;)Z

    move-result v0

    if-eqz v0, :cond_b

    iget-object v0, p0, Lcn/domob/android/ads/v;->b:Landroid/os/Handler;

    new-instance v1, Lcn/domob/android/ads/v$5;

    invoke-direct {v1, p0}, Lcn/domob/android/ads/v$5;-><init>(Lcn/domob/android/ads/v;)V

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->o(Lcn/domob/android/ads/v$d;)I

    move-result v2

    int-to-long v6, v2

    invoke-virtual {v0, v1, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_b
    invoke-virtual {v3, v4, v5}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    invoke-virtual {v0, v3}, Landroid/app/Dialog;->setContentView(Landroid/view/View;)V

    iget-object v0, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->e(Lcn/domob/android/ads/v$d;)Lcn/domob/android/ads/v$b;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {p2}, Lcn/domob/android/ads/v$d;->e(Lcn/domob/android/ads/v$d;)Lcn/domob/android/ads/v$b;

    move-result-object v0

    invoke-interface {v0}, Lcn/domob/android/ads/v$b;->a()V

    goto/16 :goto_0
.end method

.method static synthetic a(Lcn/domob/android/ads/v;Landroid/view/View;Lcn/domob/android/ads/v$d;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcn/domob/android/ads/v;->a(Landroid/view/View;Lcn/domob/android/ads/v$d;)V

    return-void
.end method

.method static synthetic b()Lcn/domob/android/ads/H;
    .locals 1

    sget-object v0, Lcn/domob/android/ads/v;->a:Lcn/domob/android/ads/H;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/v;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    :cond_0
    return-void
.end method
